package com.lebang.feign.fallback;

import com.lebang.feign.AppInfoFeign;
import com.lebang.model.AppInfo;
import com.lebangweb.response.JsonData;
import org.springframework.stereotype.Component;

import static com.lebang.feign.draw.CommonFallBack.FAIL_JSON;

/**
 * @author ljx
 */
@Component
public class AppInfoFallback implements AppInfoFeign {
    @Override
    public JsonData list() {
        return FAIL_JSON;
    }

    @Override
    public AppInfo getById(Integer id) {
        return null;
    }
}
